﻿@{
    ViewBag.Title = "部门管理";
    Layout = "~/Areas/Shared/_spList.cshtml";
    ViewBag.ListActionURL = Url.Action("DeptList", "DeptManage", new { area = "Admin" });
    ViewBag.AddActionURL = Url.Action("EditDept", "DeptManage", new { area = "Admin" });
    ViewBag.DelActionURL = Url.Action("DelDept", "DeptManage", new { area = "Admin" });
    ViewBag.EditActionURL = Url.Action("EditDept", "DeptManage", new { area = "Admin" });
    ViewBag.IdColumn = "SupplierId";
    ViewBag.NameColumn = "SupplierName";
    ViewBag.ListSortName = "";
    ViewBag.ListSortOrder = "";
    ViewBag.AddWindowTitle = "添加供应商";
    ViewBag.EditWindowTitle = "编辑供应商";   
}
@model Kaiser.Models.Org
@section Script
{
    <script type="text/javascript">
        config.GridOption.columns = [[
					{ field: 'DeptCode', title: '部门标识', width: 80, sortable: true },
                    { field: 'DeptName', title: '部门名称', width: 90, sortable: true },
                    { field: 'Path', title: '组织机构路径', width: 90, sortable: false },
                    { field: 'Manager', title: '部门主管', width: 90, sortable: false },
                    { field: 'Remark', title: '备注', width: 90, sortable: false },
                    { field: 'Sequence', title: '排序', width: 90, sortable: true }
				]];
 
    </script>

}


<div  >
    <div id="Dlg-CategoryTree" style="width: 350px; height: 220px;">
        <ul class="easyui-tree" id="SelectCategoryTree">
        </ul>
    </div>
    <div id="Dlg-Edit" title="编辑" style="width: 600px; height: 350px;" buttons="#buttons">
        <div style="padding: 10px 20px 40px 40px;">
            <form method="post" id="Form1">
                <table>
         
            <tr>
                <td class="itemtxt">
                    部门标识：
                </td>
                <td> @Html.HiddenFor(m => Model.OrgId)
                    @Html.TextBoxFor(m => Model.OrgCode, new { @Class = "easyui-validatebox", @required = "true", @style = "width: 200px;", @maxlength = "10" })
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    部门名称：
                </td>
                <td>
                   @Html.TextBoxFor(m => Model.OrgName, new { @Class = "easyui-validatebox", @required = "true", @validType = "string", @style = "width: 200px;" })
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    组织机构路径：
                </td>
                <td>
                   @Html.TextBoxFor(m => Model.Path, new { @Class = "easyui-validatebox", @required = "true", @validType = "string", @style = "width: 200px;" })
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    部门主管：
                </td>
                <td>
                   @Html.TextBoxFor(m => Model.Manager, new { @Class = "easyui-validatebox", @required = "true", @validType = "string", @style = "width: 200px;" })
                </td>
            </tr>
             <tr>
                <td style="text-align: right">
                    备注：
                </td>
                <td>
                   @Html.TextBoxFor(m => Model.Remark, new { @Class = "easyui-validatebox", @required = "true", @validType = "string", @style = "width: 200px;" })
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    排序：
                </td>
                <td>
                   @Html.TextBoxFor(m => Model.Sequence, new { @Class = "easyui-validatebox", @required = "true", @validType = "int", @style = "width: 200px;" })
                </td>
            </tr>
        </table>
            </form>
        </div>
  
    </div>
 
</div>

